
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '会员信息',
    enableValidate: true
})

@Injectable()
export class DetailFormComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'code_670fabc7_yot3',
        name: "{{code_670fabc7_yot3}}",
        binding: 'code',
        updateOn: 'blur',
        defaultI18nValue: '编号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    code: FormControl;

    @NgFormControl({
        id: 'name_b66df7a6_b8rf',
        name: "{{name_b66df7a6_b8rf}}",
        binding: 'name',
        updateOn: 'blur',
        defaultI18nValue: '姓名',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    name: FormControl;

    @NgFormControl({
        id: 'remark_06ea1bdd_pn0o',
        name: "{{remark_06ea1bdd_pn0o}}",
        binding: 'remark',
        updateOn: 'blur',
        defaultI18nValue: '备注',
    })
    remark: FormControl;

    @NgFormControl({
        id: 'gender_cf4ae015_v3hu',
        name: "{{gender_cf4ae015_v3hu}}",
        binding: 'gender',
        updateOn: 'blur',
        defaultI18nValue: '性别',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    gender: FormControl;

    @NgFormControl({
        id: 'location_b93699bb_njr0',
        name: "{{location_b93699bb_njr0}}",
        binding: 'location',
        updateOn: 'blur',
        defaultI18nValue: '常驻地',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    location: FormControl;

    @NgFormControl({
        id: 'levelOfMember_4dc56d77_6pn4',
        name: "{{levelOfMember_4dc56d77_6pn4}}",
        binding: 'levelOfMember',
        updateOn: 'blur',
        defaultI18nValue: '等级',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            }
        ]
    })
    levelOfMember: FormControl;

    @NgFormControl({
        id: 'levelName_f31f8371_a378',
        name: "{{levelName_f31f8371_a378}}",
        binding: 'levelName',
        updateOn: 'blur',
        defaultI18nValue: '等级名称',
    })
    levelName: FormControl;

    @NgFormControl({
        id: 'privilege_ed115c94_rpkz',
        name: "{{privilege_ed115c94_rpkz}}",
        binding: 'privilege',
        updateOn: 'blur',
        defaultI18nValue: '等级特权',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    privilege: FormControl;

    @NgFormControl({
        id: 'recommandPeople_f4eb2c2e_320u',
        name: "{{recommandPeople_f4eb2c2e_320u}}",
        binding: 'recommandPeople',
        updateOn: 'blur',
        defaultI18nValue: '推荐人',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    recommandPeople: FormControl;

    @NgFormControl({
        id: 'phoneNumber_2534c8bd_n6vo',
        name: "{{phoneNumber_2534c8bd_n6vo}}",
        binding: 'phoneNumber',
        updateOn: 'blur',
        defaultI18nValue: '手机号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    phoneNumber: FormControl;

}